package com.hc.music.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hc.music.common.R;
import com.hc.music.dao.BannerMapper;
import com.hc.music.entity.Banner;
import com.hc.music.service.BannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BannerServiceImpl extends ServiceImpl<BannerMapper, Banner> implements BannerService {
    @Autowired
    BannerMapper bannerMapper;
    @Override
    public R selectAll() {
        return R.success(null,bannerMapper.selectList(null));
    }
}
